<?php
namespace Api;

class Request
{

    public static $input = array();

    public function __construct()
    {
        $this->input = $_REQUEST;
    }

    public static function input($key)
    {
        if (empty($key))
            return $_REQUEST;
        return isset($_REQUEST[$key]) ? $_REQUEST[$key] : NULL;
    }
}